# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms.ods.mysql.project_work_order_type import jms_ods__project_work_order_type

jms_oracle__dim_project_work_order_type = BashOperator(
    task_id='jms_oracle__dim_project_work_order_type',
    execution_timeout=timedelta(hours=1),
    email=['lukunming@jtexpress.com','yl_bigdata@yl-scm.com'],
    # name='jms_oracle__dim_network_whole_massage_{{ execution_date | date_add(1) | cst_ds }}',
    bash_command="jms/oracle/dim_project_work_order_type/execute.sh",
    pool='spmi_apack',
    retries=1,
    pool_slots=2,
)

jms_oracle__dim_project_work_order_type << jms_ods__project_work_order_type